<template>
  <div class="common-layout">
    <el-container>
      <el-header>田国刚——Java企业开发课程设计 </el-header>
      <el-container >
        <el-aside width="200px" >


          <el-menu style="min-height: 100vh"
              default-active="2"
              class="el-menu-vertical-demo"
              @open="handleOpen"
              @close="handleClose"
          >

            <el-menu-item index="4">
              <el-icon><setting /></el-icon>
             <router-link  class="link"  to="main">主任务</router-link>
            </el-menu-item>
            <el-sub-menu index="2-4">
              <template #title>人脸识别</template>
              <el-menu-item index="2-4-1"> <router-link  class="link"  to="addFaceInfo">人脸管理</router-link></el-menu-item>
              <el-menu-item index="2-4-2"> <router-link  class="link"  to="checkFaceInfo">识别中心</router-link></el-menu-item>
            </el-sub-menu>
            <el-sub-menu index="3-4">
              <template #title>数据字典</template>
              <el-menu-item index="3-4-1"> <router-link  class="link"  to="dictType">字典类型</router-link></el-menu-item>
              <el-menu-item index="3-4-2"> <router-link  class="link"  to="dictData">字典数据</router-link></el-menu-item>
            </el-sub-menu>
          </el-menu>




        </el-aside>
        <el-main><router-view></router-view></el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script lang="ts" setup>
import {

  Setting,
} from '@element-plus/icons-vue'
const handleOpen = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
</script>



<style>

.link{
  text-decoration: none; /* 去除默认的下划线 */
  outline: none;	/* 去除旧版浏览器的点击后的外虚线框 */
  color: #000;	/* 去除默认的颜色和点击后变化的颜色 */
}

</style>
